      <td class="editable_select" id="{$documentName}|{ldelim}$value->getUniqueId(){rdelim}|{$variable}|{ldelim}eval var=$foreignDocs.{$variable}.foreignField assign="foreignField"{rdelim}{ldelim}$foreignField{rdelim}|{$foreignTable}">{ldelim}if count($value->get{$variable|capitalize}()) > 0{rdelim}{ldelim}if count($value->get{$variable|capitalize}()) > 1{rdelim}<select multiple="true" readonly="true">{ldelim}foreach from=$value->get{$variable|capitalize}() item=fields{rdelim}<option>{ldelim}call_user_func_array object=$fields function="get$foreignField"{rdelim}</option>{ldelim}/foreach{rdelim}</select>{ldelim}else{rdelim}{ldelim}foreach from=$value->get{$variable|capitalize}() item=fields{rdelim}{ldelim}call_user_func_array object=$fields function="get$foreignField"{rdelim}{ldelim}/foreach{rdelim}{ldelim}/if{rdelim}{ldelim}else{rdelim}&nbsp;{ldelim}/if{rdelim}</td>
